import axios from 'axios'


export function getMenus(role){
    return axios.get(`http://localhost/api/menus?role=${role}`)
    .then(res => res.data)
    .catch(err => {
        console.error(err); 
    })
}